home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: how can an int data type accept char data?
- Date: 05 Mar 1996 03:49:04 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Mar4204904@qcd.lanl.gov>
- References: <4hg2si$irt@news.azstarnet.com>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: Howard Salmon's message of 5 Mar 1996 00:46:10 GMT
-
- In article <4hg2si$irt@news.azstarnet.com>
- Howard Salmon <captarm@azstarnet.com> writes:
- <snip>
- HS: #include <stdio.h>
- HS:
- HS: main()
- HS: {
- HS: int startingPoint, candidate, i;
- HS: int done, foundFactor;
- HS:
- HS: done = FALSE;
- HS:
- HS: {how can a variable declared as an integer
- HS: hold character variables? Why wouldn't
- HS: C insist on a char data type? }
-
- Where is the `char' data type? FALSE is plainly undefined, and that is
- that. Any C compiler which diagnose this should be thrown away at
- once!!!
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-